Fix another crash due to incorrect hash value of glyph rows, bug #10035.
authorEli Zaretskii <eliz@gnu.org>
Fri, 18 Nov 2011 12:21:42 +0000 (14:21 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 18 Nov 2011 12:21:42 +0000 (14:21 +0200)
commitb2d170f3e8d072444bc9db78b26d7c4ecda28b7b
tree4262e70187d78fc12767f922fc7790ff389db835
parent2fbfdd56056ee387b5d07787698546a63b2167cd
Fix another crash due to incorrect hash value of glyph rows, bug #10035.

 src/dispnew.c (swap_glyph_pointers): Swap the used[] arrays and the
 hash values of the two rows.
 (copy_row_except_pointers): Preserve the used[] arrays and the
 hash values of the two rows.
 src/xdisp.c (row_hash): New function, body extracted from
 compute_line_metrics.
 (compute_line_metrics): Call row_hash, instead of computing the
 hash code inline.
 src/dispnew.c (verify_row_hash): Call row_hash for computing the
 hash code of a row, instead of duplicating code from xdisp.c.
 src/dispextern.h (row_hash): Add prototype.
src/ChangeLog
src/dispextern.h
src/dispnew.c
src/xdisp.c